<template>
    <div>
        user
        {{$store.state.uuid}}
        <el-table
            :data="userlist"
            style="width: 100%">
            <el-table-column
                prop="nickname"
                label="昵称"
                width="180">
            </el-table-column>
            <el-table-column
                prop="hot"
                label="爱好"
                width="180">
            </el-table-column>
            <el-table-column
                prop="phone"
                label="手机号">
            </el-table-column>
            <el-table-column
                prop="address"
                label="地址">
            </el-table-column>
            </el-table>
    </div>
</template>

<script>
export default {
    data(){
        return {
            userlist:[]
        }
    },
    created(){
        this.$http.get('/api/userlist').then(res => {
            if(res.data.code === 1){
                this.userlist = res.data.data
            }
        })
    }
}
</script>